package com.control.login;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.entitiy.login.User;
import com.service.login.LoginUserService;

@Controller
@RequestMapping("/login")
public class LoginControl {
	@Autowired
	LoginUserService loginUserService;

	@RequestMapping("/login.do")
	public String listPerson(Model model) {
		User user=loginUserService.findOneUser("1");
		model.addAttribute("user", user);
		return "login";
	}
}
